package com.kantboot.api.phone.domain.entity;

import jakarta.persistence.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import java.io.Serializable;

/**
 * 电话号码归宿地
 */
@Table(name = "api_phone_belong_to")
@Entity
@Getter
@Setter
@Accessors(chain = true)
@EntityListeners(AuditingEntityListener.class)
public class ApiPhoneBelongTo implements Serializable {

    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    /**
     * 电话区号
     */
    @Column(name = "area_code")
    private String areaCode;

    /**
     * 电话号码前缀
     */
    @Column(name = "phone_prefix")
    private String phonePrefix;

    /**
     * 归属地
     * 一级行政区
     */
    @Column(name = "belong_to_of_adlv1_code")
    private String belongToOfAdlv1Code;

    /**
     * 归属地
     * 二级行政区
     */
    @Column(name = "belong_to_of_adlv2_code")
    private String belongToOfAdlv2Code;

    /**
     * 归宿地名称
     * 一级行政区
     */
    @Column(name = "belong_to_of_adlv1_name")
    private String belongToOfAdlv1Name;

    /**
     * 归宿地名称
     * 二级行政区
     */
    @Column(name = "belong_to_of_adlv2_name")
    private String belongToOfAdlv2Name;

    /**
     * 运营商
     */
    @Column(name = "operator")
    private String operator;



}
